package com.itrencai.d2_package.abstractmethod;

public class CurrentAccount extends Account{
    public CurrentAccount(String cardId, double money) {
        super(cardId,money);//使用父亲的
    }

    @Override
    public double calc() {
        double result=getMoney()*0.0175;
        return result;
    }
}
